package com.kxf.androidtestdemo.activity;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;
import android.util.Log;
import android.view.MotionEvent;

import com.kxf.androidtestdemo.R;

public class TouchEventActivity extends BaseActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_touch_event);
    }

    @Override
    public boolean onTouchEvent(MotionEvent event) {
        Log.d(tag, "TouchEventActivity=====>>>onTouchEvent" + "  event=" + event);
        boolean b = super.onTouchEvent(event);
        Log.d(tag, "TouchEventActivity=====>>>onTouchEvent" + "  b=" + b);
        return b;
    }

    @Override
    public boolean dispatchTouchEvent(MotionEvent ev) {
        Log.d(tag, "TouchEventActivity=====>>>dispatchTouchEvent" + "  event=" + ev);
        boolean b = super.dispatchTouchEvent(ev);
        Log.d(tag, "TouchEventActivity=====>>>dispatchTouchEvent" + "  b=" + b);
        return b;
    }
}
